Optimal. Leaf size=71 \[ \frac {\sqrt {\pi } e^{-a} \text {erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}+\frac {\sqrt {\pi } e^a \text {erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 71, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {5357, 5299, 2204, 2205} \[ \frac {\sqrt {\pi } e^{-a} \text {Erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}+\frac {\sqrt {\pi } e^a \text {Erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2204
Rule 2205
Rule 5299
Rule 5357
Rubi steps
\begin {align*} \int x^{-1+\frac {n}{2}} \cosh \left (a+b x^n\right ) \, dx &=\frac {2 \operatorname {Subst}\left (\int \cosh \left (a+b x^2\right ) \, dx,x,x^{n/2}\right )}{n}\\ &=\frac {\operatorname {Subst}\left (\int e^{-a-b x^2} \, dx,x,x^{n/2}\right )}{n}+\frac {\operatorname {Subst}\left (\int e^{a+b x^2} \, dx,x,x^{n/2}\right )}{n}\\ &=\frac {e^{-a} \sqrt {\pi } \text {erf}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}+\frac {e^a \sqrt {\pi } \text {erfi}\left (\sqrt {b} x^{n/2}\right )}{2 \sqrt {b} n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.78, size = 60, normalized size = 0.85 \[ \frac {\sqrt {\pi } \left ((\cosh (a)-\sinh (a)) \text {erf}\left (\sqrt {b} x^{n/2}\right )+(\sinh (a)+\cosh (a)) \text {erfi}\left (\sqrt {b} x^{n/2}\right )\right )}{2 \sqrt {b} n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.48, size = 98, normalized size = 1.38 \[ -\frac {\sqrt {\pi } \sqrt {-b} {\left (\cosh \relax (a) + \sinh \relax (a)\right )} \operatorname {erf}\left (\sqrt {-b} x \cosh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \relax (x)\right ) + \sqrt {-b} x \sinh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \relax (x)\right )\right ) - \sqrt {\pi } \sqrt {b} {\left (\cosh \relax (a) - \sinh \relax (a)\right )} \operatorname {erf}\left (\sqrt {b} x \cosh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \relax (x)\right ) + \sqrt {b} x \sinh \left (\frac {1}{2} \, {\left (n - 2\right )} \log \relax (x)\right )\right )}{2 \, b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 52, normalized size = 0.73 \[ -\frac {\frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {b} \sqrt {x^{n}}\right ) e^{\left (-a\right )}}{\sqrt {b}} + \frac {\sqrt {\pi } \operatorname {erf}\left (-\sqrt {-b} \sqrt {x^{n}}\right ) e^{a}}{\sqrt {-b}}}{2 \, n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.11, size = 54, normalized size = 0.76 \[ \frac {{\mathrm e}^{-a} \sqrt {\pi }\, \erf \left (x^{\frac {n}{2}} \sqrt {b}\right )}{2 n \sqrt {b}}+\frac {{\mathrm e}^{a} \sqrt {\pi }\, \erf \left (\sqrt {-b}\, x^{\frac {n}{2}}\right )}{2 n \sqrt {-b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.40, size = 69, normalized size = 0.97 \[ \frac {\sqrt {\pi } x^{\frac {1}{2} \, n} {\left (\operatorname {erf}\left (\sqrt {b x^{n}}\right ) - 1\right )} e^{\left (-a\right )}}{2 \, \sqrt {b x^{n}} n} + \frac {\sqrt {\pi } x^{\frac {1}{2} \, n} {\left (\operatorname {erf}\left (\sqrt {-b x^{n}}\right ) - 1\right )} e^{a}}{2 \, \sqrt {-b x^{n}} n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^{\frac {n}{2}-1}\,\mathrm {cosh}\left (a+b\,x^n\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x^{\frac {n}{2} - 1} \cosh {\left (a + b x^{n} \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________